package com.guage.model;
import com.guage.commons.result.PageInfo;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author dechao.yang
 * @since 2017-12-14
 */
@TableName("shop_goods")
public class ShopGoods extends Model<ShopGoods> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
	@TableId(value="good_id", type= IdType.AUTO)
	private Long goodId;
    /**
     * 商品名称
     */
	@TableField("good_name")
	private String goodName;
    /**
     * 商品号
     */
	@TableField("good_code")
	private Long goodCode;
    /**
     * 商品主标题
     */
	@TableField("good_parent_title")
	private String goodParentTitle;
    /**
     * 商品副标题
     */
	@TableField("good_sub_title")
	private String goodSubTitle;
    /**
     * 商品价格(分)
     */
	@TableField("good_price")
	private Long goodPrice;
    /**
     * 商品描述
     */
	@TableField("good_description")
	private String goodDescription;
    /**
     * 库存数量
     */
	@TableField("good_num")
	private Long goodNum;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建人编号
     */
	@TableField("create_user_id")
	private Long createUserId;
    /**
     * 商品条形码
     */
	@TableField("good_barcode")
	private Long goodBarcode;
    /**
     * 商品状态(1-正常，2-下架，3-删除)
     */
	@TableField("good_status")
	private Integer goodStatus;
    /**
     * 商品卖点
     */
	@TableField("sell_point")
	private String sellPoint;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 商品排序值
     */
	@TableField("good_order")
	private Integer goodOrder;
    /**
     * 折扣率(1-100)
     */
	@TableField("deposit_rate")
	private Integer depositRate;


	public Long getGoodId() {
		return goodId;
	}

	public void setGoodId(Long goodId) {
		this.goodId = goodId;
	}

	public String getGoodName() {
		return goodName;
	}

	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	public Long getGoodCode() {
		return goodCode;
	}

	public void setGoodCode(Long goodCode) {
		this.goodCode = goodCode;
	}

	public String getGoodParentTitle() {
		return goodParentTitle;
	}

	public void setGoodParentTitle(String goodParentTitle) {
		this.goodParentTitle = goodParentTitle;
	}

	public String getGoodSubTitle() {
		return goodSubTitle;
	}

	public void setGoodSubTitle(String goodSubTitle) {
		this.goodSubTitle = goodSubTitle;
	}

	public Long getGoodPrice() {
		return goodPrice;
	}

	public void setGoodPrice(Long goodPrice) {
		this.goodPrice = goodPrice;
	}

	public String getGoodDescription() {
		return goodDescription;
	}

	public void setGoodDescription(String goodDescription) {
		this.goodDescription = goodDescription;
	}

	public Long getGoodNum() {
		return goodNum;
	}

	public void setGoodNum(Long goodNum) {
		this.goodNum = goodNum;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public Long getGoodBarcode() {
		return goodBarcode;
	}

	public void setGoodBarcode(Long goodBarcode) {
		this.goodBarcode = goodBarcode;
	}

	public Integer getGoodStatus() {
		return goodStatus;
	}

	public void setGoodStatus(Integer goodStatus) {
		this.goodStatus = goodStatus;
	}

	public String getSellPoint() {
		return sellPoint;
	}

	public void setSellPoint(String sellPoint) {
		this.sellPoint = sellPoint;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getGoodOrder() {
		return goodOrder;
	}

	public void setGoodOrder(Integer goodOrder) {
		this.goodOrder = goodOrder;
	}

	public Integer getDepositRate() {
		return depositRate;
	}

	public void setDepositRate(Integer depositRate) {
		this.depositRate = depositRate;
	}

	@Override
	protected Serializable pkVal() {
		return this.goodId;
	}

}
